package com.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author: Cxx
 * @Version 1.0
 * @create: 2025-10-01 21:16
 * @description:
 **/
@Data
public class BizBaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(
            type = IdType.ASSIGN_ID
    )
    private String guid;
    @TableField(
            value = "create_date",
            fill = FieldFill.INSERT
    )
    private LocalDateTime createDate;
    @TableField(
            value = "update_date",
            fill = FieldFill.INSERT_UPDATE
    )
    private LocalDateTime updateDate;
    @TableField(
            value = "create_user",
            fill = FieldFill.INSERT,
            jdbcType = JdbcType.VARCHAR
    )
    private String createUser;
    @TableField(
            value = "create_user_name",
            fill = FieldFill.INSERT,
            jdbcType = JdbcType.VARCHAR
    )
    private String createUserName;
    @TableField(
            value = "update_user",
            fill = FieldFill.INSERT_UPDATE,
            jdbcType = JdbcType.VARCHAR
    )
    private String updateUser;
    @TableField(
            value = "update_user_name",
            fill = FieldFill.INSERT_UPDATE,
            jdbcType = JdbcType.VARCHAR
    )
    private String updateUserName;
    @TableLogic
    @TableField(
            value = "del_flag",
            fill = FieldFill.INSERT
    )
    private Integer delFlag;
}
